package com.tree.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName com.demo.common.entity
 * Description: <类功能描述>. <br>
 * <p>
 * <使用说明>
 * </p>
 * @Author tree
 * @Date 2019-05-24 22:58
 * @Version 1.0
 */
@Data
@Accessors(chain = true)
public class BaseEntity implements Serializable {

    @TableId(type = IdType.AUTO)
    protected Long id;

    @TableField(exist = false)
    private int page = 1;

    @TableField(exist = false)
    private int pageSize = 10;

    /**
     * create date
     */
    private Date create_time;

    private Date modifyTime;

    private Integer creatorId;

    private Integer modifierId;

}
